package com.hnust.root.dao.entity.domain.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

//回复
@Data
@TableName("reply")
public class Reply {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;
    @TableField("content")
    private String content;

    @TableField("topic_id")
    private int topicId;

    //回复者
    @TableField("from_open_id")
    private String fromUser;

    //被回复者
    @TableField("to_open_id")
    private String toUser;

    //被回复者用户信息
    @TableField(exist = false)
    private WxUserInfo toUserinfo;

    //回复者用户信息
    @TableField(exist = false)
    private WxUserInfo fromUserInfo;

    //评论的ID
    @TableField("comment_id")
    private int commentId;

    @TableField("reply_id")
    //当是“回复”类型时对应的回复ID
    private int replyId;

}
